import request from '@/utils/request'
export const getNewAPI = (num) => {
  return request.get('/home/new', { params: { limit: num } })
}
export const getHotAPI = () => {
  return request.get('/home/hot')
}
export const getBrandAPI = (num) => {
  return request.get('/home/brand', { params: { limit: num } })
}
export const getHomeGoodsAPI = () => {
  return request.get('/home/goods')
}
export const getCategoryAPI = (id) => {
  return request.get('/category', { params: { id } })
}

export const getAllAPI = () => {
  return request.get('/home/category/head')
}
